class DAO():
    def getData(self, predicate, source):
    if predicate is None:
        predicate = bool
    return [a for a in source if predicate(a)]
